package com.jarvan.service;

import com.jarvan.model.Passenger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface PassengerService {
    Passenger save(Passenger passenger);
    Passenger findByName(String loginName);
    Passenger findById(Integer passengerId);
    Page<Passenger> findAllByPage(Pageable pageable);
    Passenger freenzon(Integer passengerId);
    Passenger toNormal(Integer passengerId);
}
